package com.market.bean.vo.admin;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 *
 * @since 2022/12/30 22:34
 * @author 2731235517@qq.com 谢畅
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AdminPermissionVo {
    private List<SystemPermissionsEntity> systemPermissions;
    private List<?> assignedPermissions;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public class SystemPermissionsEntity {
        private List<ChildrenEntity> children;
        private String id;
        private String label;

        @Data
        @NoArgsConstructor
        @AllArgsConstructor
        public class ChildrenEntity {
            private List<ChildrenEntityEntity> children;
            private String id;
            private String label;

            @Data
            @NoArgsConstructor
            @AllArgsConstructor
            public class ChildrenEntityEntity {
                private String id;
                private String label;
                private String api;
            }
        }
    }
}
